-- GENERATED SPELL FOR [Bleeding Hollow Archer] --


function spell0_17270(pUnit, Event) --@Aimed Shot,n/a--
pUnit:FullCastSpellOnTarget(30614,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17270', 3000, 1)
end

function spell1_17270(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(18651,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17270', 605, 1)
end

function spell2_17270(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(31942,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17270', 655, 1)
end

function Sorts_17270(pUnit, Event)
local choix_sorts_17270 = math.random(0, 2)
if choix_sorts_17270 == 0 then
pUnit:RegisterEvent('spell0_17270', 1, 1)
end
if choix_sorts_17270 == 1 then
pUnit:RegisterEvent('spell1_17270', 1, 1)
end
if choix_sorts_17270 == 2 then
pUnit:RegisterEvent('spell2_17270', 1, 1)
end
end

function mob17270_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17270', math.random(1500, 3000), 1)
end

function mob17270_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17270_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17270_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17270, 1, 'mob17270_Action')
RegisterUnitEvent(17270, 2, 'mob17270_Leave')
RegisterUnitEvent(17270, 3, 'mob17270_Kill')
RegisterUnitEvent(17270, 4, 'mob17270_Die')
